package com.xyw.code.platform.webapps.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xyw.code.platform.common.entity.po.SysDept;
import com.xyw.code.platform.webapps.config.DataScope;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 部门管理 Mapper 接口
 * </p>
 *
 * @author xyw
 * @since 2020-02-07
 */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    @Select("SELECT id,name,sort,create_time,update_time,del_flag,parent_id FROM sys_dept where del_flag = 0")
    List<SysDept> selectDeptList(DataScope dataScope);
}
